package reflection;

import java.lang.reflect.Array;

public class Array2 {
	public static void main(String args[]) {

		Array2.test(null);
		// int dims[] = new int[] { 5, 10, 15 };
		// Object arr = Array.newInstance(Integer.TYPE, dims);
		// Object arrobj = Array.get(arr, 3);
		// Class cls = arrobj.getClass().getComponentType();
		// System.out.println(cls);
		// arrobj = Array.get(arrobj, 5);
		// Array.setInt(arrobj, 10, 37);
		// int arrcast[][][] = (int[][][]) arr;
		// System.out.println(arrcast[3][5][10]);

	}

	public static void test(String[] test) {
		for (String string : test) {
			System.out.println(string);
		}

	}
}
